package com.javaweb.service;




import com.javaweb.model.User;
import com.javaweb.service.dto.PageResult;
import com.javaweb.service.dto.UserConditionDto;
import com.javaweb.service.dto.UserDto;

import java.util.List;

public interface UserService {

    public User login(String username, String password) ;
    public List<User> queryByName(String username) ;

    public int register(User user);

    public PageResult queryUsers(User userCondition, Integer pageNum, Integer pageSize);

    public void addAssignRole(String userId, List <String> roleIds);

    List<Integer> getRoleIdsByUserId(String userId);

    public List<User> findUsersByCondition(UserConditionDto userCond);
    public void addUser(UserDto userDto);
    // 修改用户密码方法
    public boolean changeUserPassword(String userId, String newPassword);

    void changePassword(String userId, String newPassword);
}
